package com.intelligent.ispc.core.repository;

import com.intelligent.ispc.core.entity.SysConfig;
import com.intelligent.ispc.core.repository.mybatis.MyBatisRepository;

/**
 * Created by Hao on 2016/9/18.
 */
@MyBatisRepository
public interface SysConfigDao {
    /**
     * Create system configuration item.
     *
     * @param sysConfig config details
     */
    void create(SysConfig sysConfig);

    /**
     * Update system configuration item.
     *
     * @param sysConfig config details
     */
    void update(SysConfig sysConfig);


    /**
     * Find system configuration item by name.
     *
     * @param name config item name.
     * @return SysConfig
     */
    SysConfig findByName(String name);

}
